package com.netString;

import java.util.Scanner;

public class ResverseString {

	public static void main(String[] args) 
	{
		Scanner in = new Scanner(System.in);
		
		String str = in.nextLine();
		
		System.out.println(str);
		
		reverse(str);

	}

	private static void reverse(String str)
	{
		StringBuilder sb = new StringBuilder();
		
		char c[] = str.toCharArray();
		
		for(int i=c.length-1;i>=0;i--)
		{
			sb.append(c[i]);
		}
		
		System.out.println("reverse Striing is  " +sb);
	}

}
